package com.foreknow.demo9Exercise2;

import java.util.Scanner;

public class ClassA implements A {

    @Override
    public int method(int n) {
        int sum = 0;
        for (int i = 1;i<=n;i++) {
             sum += i;
        }
        return sum;
    }

}
